<!-- ************************************************************************************************************ -->
<!-- fileName          : admin_left.jsp 																		  -->
<!-- summary           : admin界面左侧导航 																	  		  -->
<!-- ************************************************************************************************************ -->

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>admin_left</title>
<link rel="stylesheet" type="text/css" href="../../css/layout.css" />
<link rel="stylesheet" type="text/css" href="../../css/guide.css" />
<link rel="stylesheet" type="text/css" href="../../css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="../../css/bootstrap/bootstrap-responsive.min.css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
<script type="text/javascript" src="../../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../js/guide.js"></script>
<style type="text/css">

</style>
</head>
<body>
	<div id="mainContent" >
		<div id="sidebar">
			<div class=pnav-cnt>
				<div class=pnav-box id=letter-a>
					<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>网站风格设置</SPAN>
					</div>
					<ul class="box-list">
						<li>  <a href="./admin_logo.jsp" style="color:#909090; font-size:13px;"	target=Main_body>网站Logo</a> 
						</li>
							
						<li> <a href="./admin_copyright.jsp" style="color:#909090; font-size:13px;"	target=Main_body>底部版权声明</a>
						</li>
					</ul>
				</div>
				<div class=pnav-box id=letter-b>
					<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>首页相关设置</SPAN>
					</div>
					<ul class="box-list ">
						<li>
							<a href="./admin_introduction.jsp" target=Main_body style="color:#909090; font-size:13px;" >网站图文简介</a> 
						</li>
						<li>
							<a href="./admin_homepagemiddlelink.jsp" target=Main_body style="color:#909090; font-size:13px;" >网站相关链接</a>
						</li>
						<li>
							<a href="./admin_leftguide.jsp" target=Main_body style="color:#909090; font-size:13px;" >左侧目录</a> 
						</li>
						<li >
							<a href="./admin_rightguide.jsp" target=Main_body style="color:#909090; font-size:13px;" >右侧目录</a>
						</li>
						<li>
							<a href="./admin_postsleft.jsp" target=Main_body style="color:#909090; font-size:13px;" >文章列表（左）</a> 
						</li>
						<li>
							<a href="./admin_postsright.jsp" target=Main_body style="color:#909090; font-size:13px;" >文章列表（右）</a> 
						</li>
						<li>
							<a href="./admin_contentlink.jsp" target=Main_body style="color:#909090; font-size:13px;" >文章标题处链接</a>
						</li>
					</ul>
				</div>
								
				<div class=pnav-box id=letter-c>
					<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>其他页面设置</SPAN>
					</div>
					
<%
	//设置请求的字符编码以支持中文
	request.setCharacterEncoding ("utf-8");

	//获取请求参数

	//从web.xml获取全局参数
	String drv=config.getServletContext().getInitParameter("DBDriver");
	String url=config.getServletContext().getInitParameter("DBURL");
	String uid=config.getServletContext().getInitParameter("DBUser");
	String pwd=config.getServletContext().getInitParameter("DBPass");
	
	//构建SQL字符串和JDBC对象
	String strSQL = "SELECT * FROM immie0_immi.topguide tg WHERE tg.father_id=-1";	// (id, name, content_name, content, url, father_id, date)
	Connection conn = null;
	PreparedStatement pstmt = null;	
	ResultSet rs = null; //父节点

	try {
		Class.forName(drv).newInstance();
		conn = DriverManager.getConnection(url,uid,pwd);
		pstmt = conn.prepareStatement(strSQL);		
		
		rs = pstmt.executeQuery();
%>
					
						<ul class="box-list ">								
						<li >
							<a href="./admin_topguide.jsp" target=Main_body style="color:#909090; font-size:13px;" >顶部导航</a> 
						</li>
						<%	while(rs.next()) { 	%>
						<li >
							<a href="EditTopguideFather.do?id=<%=rs.getString(1)%>" target=Main_body style="color:#909090; font-size:13px;" ><%=rs.getString(2) %></a>
						</li>
						<%	}			%>
						
						</ul>
				</div>
				<div class=pnav-box id=letter-d >
						<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>在线评估设置</SPAN>
					</div>
						<ul class="box-list ">
						<li>
							<a href="./admin_evaluation_Manage.jsp" target=Main_body style="color:#909090; font-size:13px;" >评估内容管理</a>  <SPAN class=cDGray> </SPAN>
						</li>
						<li>
							<a href="./admin_evaluation_showAll.jsp" target=Main_body style="color:#909090; font-size:13px;" >全部评估信息</a>  <SPAN class=cDGray> </SPAN>
						</li>
						<li>
							<a href="./admin_evaluation_showAllImportant.jsp" target=Main_body style="color:#909090; font-size:13px;" >潜在客户</a>  <SPAN class=cDGray> </SPAN>
						</li>
						</ul>
				</div>
				<div class=pnav-box id=letter-e>
					<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>联系方式设置</SPAN>
					</div>
						<ul class="box-list ">
						<li>
							<a href="./admin_contact.jsp" target=Main_body style="color:#909090; font-size:13px;">联系我们</a>  <SPAN class=cDGray> </SPAN>
						</li>
					
					
						</ul>
				</div>
				<div class=pnav-box id=letter-f style="display:none">
					<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>论坛</SPAN>
					</div>
						<ul class="box-list ">
						<li>
							<a href="#" target=Main_body style="color:#909090; font-size:13px;">热门话题</a>  <SPAN class=cDGray> </SPAN>
						</li>
						<li>
							<a href="#" target=Main_body style="color:#909090; font-size:13px;">关于我们</a> <SPAN class=cDGray> </SPAN>
						</li>
						</ul>
				</div>
				<div class=pnav-box id=letter-g >
					<div class=box-title>
						<a class="btn-fold hidden" href="#"></a> <a class="btn-unfold "
							href="#"></a> <SPAN class=pnav-letter>管理员设置</SPAN>
					</div>
						<ul class="box-list ">
						<li>
							<a href="./admin_adminuser.jsp" target=Main_body style="color:#909090; font-size:13px;">账号</a>  <SPAN class=cDGray> </SPAN>
						</li>
						<li>
							<a href="./admin_adminpassword.jsp" target=Main_body style="color:#909090; font-size:13px;">密码</a> <SPAN class=cDGray> </SPAN>
						</li>
						</ul>
				</div>
				<script type="text/javascript">
					//<![CDATA[ 
					(function() {
						NTES("span.photo-search input[type=text]")
								.addEvent(
										"focus",
										function() {
											this.value == this.defaultValue
													&& (this.value = "");
										})
								.addEvent(
										"blur",
										function() {
											this.value == ""
													&& (this.value = this.defaultValue);
										});
						NTES("div.pnav-box div.box-title a.btn-fold")
								.addEvent(
										"click",
										function(e) {
											e.preventDefault();
											var eleTitle = NTES(this.parentNode);
											NTES(this).addCss("hidden");
											eleTitle.$("a.btn-unfold")
													.removeCss("hidden");
											NTES(eleTitle.parentNode).$(
													"ul.box-list")
													.removeCss("hidden");
										});
						NTES("div.pnav-box div.box-title a.btn-unfold")
								.addEvent(
										"click",
										function(e) {
											e.preventDefault();
											var eleTitle = NTES(this.parentNode);
											NTES(this).addCss("hidden");
											eleTitle.$("a.btn-fold")
													.removeCss("hidden");
											NTES(eleTitle.parentNode).$(
													"ul.box-list").addCss(
													"hidden");
										});
						NTES("div.pnav-box ul.box-list a.btn-fold")
								.addEvent(
										"click",
										function(e) {
											e.preventDefault();
											var eleTitle = NTES(this.parentNode);
											NTES(this).addCss("hidden");
											eleTitle.$("a.btn-unfold")
													.removeCss("hidden");
											eleTitle.$("p").removeCss(
													"hidden");
										});
						NTES("div.pnav-box ul.box-list a.btn-unfold")
								.addEvent(
										"click",
										function(e) {
											e.preventDefault();
											var eleTitle = NTES(this.parentNode);
											NTES(this).addCss("hidden");
											eleTitle.$("a.btn-fold")
													.removeCss("hidden");
											eleTitle.$("p")
													.addCss("hidden");
										});
						new NTES.ui.Slide(NTES("ul.photo-snav li"),
								NTES("div.photo-scnt"), "active",
								"mouseover", 6000);
					})();
					//]]>
				</script>

			</div>

		</div>
	</div>
	
<%		
	} catch (ClassNotFoundException e) {
		e.printStackTrace();
	} catch (InstantiationException e) {
	    e.printStackTrace();
	} catch (IllegalAccessException e) {
		e.printStackTrace();
	} catch (SQLException e) {
		e.printStackTrace();
	} 
	finally {
		if (rs != null) {
			rs.close();
			rs = null;
		}
		if (pstmt != null) {
			pstmt.close();
			pstmt = null;
		}		
		if (conn != null) {
			conn.close();
			conn = null;
		}
	}
%>
	
</body>
</html>